package jp.ne.hatena.d.digitalsoul.warikan.roles

import jp.ne.hatena.d.digitalsoul.warikan.math._

trait Administrator {
	
    var roles:Map[String, Int]
    
    def addMapping(role:String, weight:Int) = roles += (role -> weight)
    
    def weightOf(role:String):Int = roles(role)
    
}